package com.ruoyi.eservice.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 城市查询对象 einfo_dict
 *
 * @author fancheng
 * @date 2022-11-10
 */
@TableName(value = "einfo_dict")
public class Dict extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 地区ID */
    @Excel(name = "地区ID")
    /**
     * IdType.AUTO          数据库ID自增
     * IdType.INPUT         用户输入ID
     * IdType.ASSIGN_ID     全局唯一ID，内容为空自动填充（雪花算法）
     * IdType.ASSIGN_UUID   全局唯一ID，内容为空自动填充
     */
    @TableId(type = IdType.AUTO)
    private Long dictId;

    /** 上级ID */
    @Excel(name = "上级ID")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 区域等级 */
    @Excel(name = "区域等级")
    private Long level;

    public void setDictId(Long dictId)
    {
        this.dictId = dictId;
    }

    public Long getDictId()
    {
        return dictId;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setLevel(Long level)
    {
        this.level = level;
    }

    public Long getLevel()
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dictId", getDictId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("level", getLevel())
            .toString();
    }
}
